﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PloobsEngine.SceneControl;

namespace PloobsEngine.IA
{
    public class FSMAgent : IAgent
    {
        
        IObject obj;
        StateMachine sm;

        public IObject Obj
        {
            get { return obj; }
            set { obj = value; }
        }

        public FSMAgent(IObject obj)
        {
            this.obj = obj;            
            obj.Agente = this;
            sm = new StateMachine(obj);

        }
        public virtual void Update(Microsoft.Xna.Framework.GameTime gt)
        {
            sm.UpdateFSM();     
        }

        public StateMachine StateMachine
        {
                get
                {
                    return sm;
                }
        }

        
    }
}
